# added by yinchao, Fri June 21 17:00	2024
# find all unique words in a file.

fhand = open('romeo.txt', 'r')

unique_words = []
for line in fhand:
    words = line.split()
    for word in words:
        if unique_words.count(word) == 0:
            unique_words.append(word)

unique_words.sort()
print(unique_words)
